﻿using System.Net.Sockets;

namespace RemoteDesktop
{
    public class ConnectInfo
    {
        public string IP { set; get; }
        public string Port { set; get; }
        public string Role { set; get; }
        public string Other { set; get; }
        public TcpClient client { set; get; }
        public ConnectInfo(string ip, string port)
        {
            this.IP = ip;
            this.Port = port;
        }
        public ConnectInfo(string ip, string port, string role)
        {
            this.IP = ip;
            this.Port = port;
            this.Role = role;
        }
        public ConnectInfo(string ip, string port, string other, string role)
        {
            this.IP = ip;
            this.Port = port;
            this.Other = other;
            this.Role = role;
        }
        public string ToText()
        {
            return $"IP:{IP},Port:{Port},Other:{Other}";
        }
    }
}
